import { createAppContainer } from "react-navigation";
import { createStackNavigator } from "react-navigation-stack";

import SplashPage from "../pages/SplashPage";
import NetErrorPage from "../pages/NetErrorPage";
import NetErrorTipPage from "../pages/NetErrorTipPage";
import Login from "../pages/Login";
import MainPage from "../pages/MainPage";
import ResetPwd from "../pages/ResetPwd";
import AboutUs from "../pages/mine/AboutUs";
import BlankPage from "../pages/BlankPage";
import Html from "../pages/Html";
import H5Page from "../pages/H5Page";
import Protocol from "../pages/mine/Protocol";
import Privacy from "../pages/mine/Privacy";
import ScanPage from "../pages/home/ScanPage";
import OrderDetails from "../pages/order/OrderDetails";
import AbnormalDelivery from "../pages/order/AbnormalDelivery";
import TimeoutOrderMgr from "../pages/order/TimeoutOrderMgr";
import OrderAppeal from "../pages/order/OrderAppeal";
import ComplaintOrderMgr from "../pages/order/ComplaintOrderMgr";
import ComplaintOrder from "../pages/order/ComplaintOrder";
import MyScore from "../pages/mine/MyScore";
import MapOrderList from "../pages/order/MapOrderList";
import MapOrder from "../pages/order/MapOrder";
import DeliveryException from "../pages/order/DeliveryException";
import OrderComplaintAppeal from "../pages/order/OrderComplaintAppeal";
import UploadFailRecord from "../pages/mine/UploadFailRecord";
import TimeoutOrder from "../pages/order/TimeoutOrder";
import OrderLocate from "../pages/order/OrderLocate";
import Logs from "../pages/mine/Logs";
import WorkOrder from "../pages/order/WorkOrder";
import WorkOrderDetail from "../pages/order/WorkOrderDetail";
import TransferCenter from "../pages/tansfer/TransferCenter";
import TransferCakeList from "../pages/tansfer/TransferCakeList";
import ScanQrcodePage from "../pages/ScanQrcodePage";
import SeekOrder from "../pages/seek-order/SeekOrder";
import SearchAddressMap from "../pages/components/SearchAddressMap";
import ModifyOrder from '../pages/order/ModifyOrder'

export const AppStackNavigator = createStackNavigator(
  {
    SplashPage,
    Login,
    MainPage,
    ResetPwd,
    AboutUs,
    BlankPage,
    NetError: NetErrorPage,
    NetErrorTip: NetErrorTipPage,
    Html,
    H5Page,
    Protocol,
    Privacy,
    ScanPage,
    OrderDetails,
    AbnormalDelivery,
    TimeoutOrderMgr,
    OrderAppeal,
    ComplaintOrderMgr,
    ComplaintOrder,
    MyScore,
    MapOrderList,
    MapOrder,
    DeliveryException,
    OrderComplaintAppeal,
    UploadFailRecord,
    TimeoutOrder,
    OrderLocate,
    Logs,
    WorkOrder,
    WorkOrderDetail,
    TransferCenter,
    TransferCakeList,
    ScanQrcodePage,
    SeekOrder,
    SearchAddressMap,
    ModifyOrder,
  },
  {
    initialRouteName: "SplashPage",
    headerMode: "none",
  },
);

export const AppContainer = createAppContainer(AppStackNavigator);
